﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NPMonitor.DataModel;

namespace NPMonitor.Interfaces
{
    public interface IMailStore
    {
        /// <summary>
        /// 添加邮件
        /// </summary>
        /// <param name="mailData"></param>
        void AddMail(MailData mailData);

        /// <summary>
        /// 获取未发送的邮件
        /// </summary>
        /// <param name="takeCount"></param>
        /// <returns></returns>
        List<MailData> GetNoSendMailList(int takeCount);

        /// <summary>
        /// 更改Mail状态
        /// </summary>
        /// <param name="mailId"></param>
        /// <param name="status"></param>
        void UpdateMail(int mailId, MailStatus status);
    }
}
